<%@tag description="put the tag description here" pageEncoding="UTF-8"%>

<%@attribute name="title" required="true" rtexprvalue="true"%>
<%@attribute name="width" required="true" rtexprvalue="true"%>
<%@attribute name="height" required="true" rtexprvalue="true"%>

<%
    int w = Integer.parseInt(width);
    int h = Integer.parseInt(height);
    String path = request.getContextPath() + "/images/frame";
%>

<div style="width: <%=w%>px; background-color: white; height: <%=h%>px; float: left;">

	<div style="margin: 0px; padding: 0px; line-height: 29px;">
		<div style="width: 8px;   height: 29px; background-image: url(<%=path%>/corner-LU-8x29.bmp);  float: left;"></div>
		<div style="width: <%=w-8-56%>px; height: 29px; background-image: url(<%=path%>/border-top-8x29.bmp); float: left;">
			<font style="font-family: Arial; font-size: 20px; font-weight: bold; color: red; margin-left: 10px">
                            ${title}
                        </font>
		</div>
		<div style="width: 56px;  height: 29px; background-image: url(<%=path%>/corner-RU-56x29.bmp); float: left;"></div>
	</div>

	<div>
		<div style="width: 8px;   height: <%=h-29-8%>px; background-image: url(<%=path%>/border-left-8x16.bmp); float: left;"></div>
		<div style="width: <%=w-16%>px; height: <%=h-29-8%>px; background-color: white; float: left;">
<jsp:doBody/>
		</div>
		<div style="width: 8px;   height: <%=h-29-8%>px; background-image: url(<%=path%>/border-right-8x16.bmp); float: left;"></div>
	</div>

	<div style="font-size: 0px;">
		<div style="width: 8px;   height: 8px; background-image: url(<%=path%>/corner-LD-8x8.bmp); float: left;"></div>
		<div style="width: <%=w-16%>px; height: 8px; background-image: url(<%=path%>/border-bottom-8x8.bmp); float: left;"></div>
		<div style="width: 8px;   height: 8px; background-image: url(<%=path%>/corner-RD-8x8.bmp);  float: left;"></div>
	</div>
</div>